package com.pioneer.swing.controller;

/**
 * Title:        Pioneer Metals Application
 * Description:
 * Copyright:    Copyright (c) 2001
 * Company:      Pioneer Metals
 * @author Gary Chen
 * @version 1.0
 */

public class ErrorCode {

	static int OK=0;
	static int DUPLICATE_KEY=1;
	static int MISSING_VALUE=2;
	static int BAD_FORMAT=3;
	static int BUSINESS_LOGIC=4;

	private int errCode;
	private String errMesg;

    public ErrorCode(int errCode, String errMesg) {
		this.errCode=errCode;
		this.errMesg=errMesg;
    }

	int getErrCode() {
		return this.errCode;
	}

	String getErrMesg() {
		return this.errMesg;
	}
}